﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/Main.Master" AutoEventWireup="true"
    CodeBehind="AddRoles.aspx.cs" Inherits="HRM.Web.master.AddRoles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row-fluid">
        <div class="span12">
            <div class="alert alert-info" runat="server" id="divAlert" visible="false">
                <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                <button type="button" class="close" data-dismiss="alert">
                    &times;
                </button>
            </div>
            <div class="block">
                <div class="head">
                    <h2>
                    <% 
                        if (Request.QueryString["RoleID"] != null && Request.QueryString["RoleID"]!="0")
                        {
                            Response.Write("Edit Role");
                        }
                        else
                        {
                            Response.Write("Create Role");
                        }
                            
                        
                         %>
                       
                        </h2>
                    <div class="side fr">
                        <%-- <button class="btn" onclick="clear_form('#validate');" type="button">
                            Clear form</button>--%>
                    </div>
                </div>
                <div class="content np">
                    <div class="controls-row">
                        <div class="span2">
                            Name:</div>
                        <div class="span10">
                            <asp:TextBox ID="txtRoleName" runat="server" class="validate[required]"></asp:TextBox>
                            <span class="help-inline">Required</span>
                            <asp:HiddenField ID="hdnID" runat="server" Value="0" />
                        </div>
                    </div>
                    <div class="controls-row">
                        <div class="span2">
                            Description:</div>
                        <div class="span10">
                            <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
                            <span class="help-inline">Required</span>
                        </div>
                    </div>
                </div>
                <div class="footer">
                    <div class="side fr">
                        <div class="btn-group">
                            <%--<button class="btn" type="button" onclick="$('#validate').validationEngine('hide');">Hide prompts</button>
                            <button class="btn btn-primary" type="submit">Submit</button>--%>
                            <asp:Button ID="btnCancel" runat="server" CssClass="btn validate-skip" 
                                Text="Cancel" onclick="btnCancel_Click"
                                /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnSave" runat="server" CssClass="btn btn-primary" 
                                Text="Save" onclick="btnSave_Click"
                                />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
